package com.sls.web.manager.game.pojo.ekhui;

import java.io.Serializable;
import java.util.Date;

import com.sls.web.manager.pojo.UserInfoVO;

/**
 * 商户
 * 
 * @author Administrator
 * 
 */
public class Trader implements Serializable {
	private static final long serialVersionUID = 6297904605935735847L;
	private String traderId;
	private String traderName; // 商户名称
	private String traderStatus; // 1：正常 -1：终止 2：暂停 0：未审核
	private int traderLevel; // 商户等级
	private String parentId; // 上级商户id
	private String parentName; // 上级商户名称
	private String traderType; // 商户类别,1:运营商，2：供应商，3：销售商
	private String telephone; // 联系固话
	private String mobile; // 手机
	private String provinceId; // 所在省份id
	private String provinceName; // 所在省份名称
	private String cityId; // 所在城市
	private String cityName; // 所在城市名称
	private String areaId; // 所在区或者县id
	private String areaName; // 所在区或者县名称
	private Date createTime; // 商户创建时间
	private String legelName; // 法人姓名
	private String legelCard; // 法人身份证
	private String remark; // 备注
	private Date lastModifyTime; // 最近修改时间
	private String address; // 联系地址
	private String checkerName; // 审核人姓名
	private Date checkTime; // 审核时间

	public Trader() {
		super();
	}

	public String getTraderId() {
		return traderId;
	}

	public void setTraderId(String traderId) {
		this.traderId = traderId;
	}

	public String getTraderName() {
		return traderName;
	}

	public void setTraderName(String traderName) {
		this.traderName = traderName;
	}

	public String getTraderStatus() {
		return traderStatus;
	}

	public void setTraderStatus(String traderStatus) {
		this.traderStatus = traderStatus;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public int getTraderLevel() {
		return traderLevel;
	}

	public void setTraderLevel(int traderLevel) {
		this.traderLevel = traderLevel;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getTraderType() {
		return traderType;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public void setTraderType(String traderType) {
		this.traderType = traderType;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLegelName() {
		return legelName;
	}

	public void setLegelName(String legelName) {
		this.legelName = legelName;
	}

	public String getLegelCard() {
		return legelCard;
	}

	public void setLegelCard(String legelCard) {
		this.legelCard = legelCard;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getCheckerName() {
		return checkerName;
	}

	public void setCheckerName(String checkerName) {
		this.checkerName = checkerName;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public Trader saveTrader(Trader parentTrader) {
		this.setParentId(parentTrader.getTraderId());
		this.setParentName(parentTrader.getTraderName());
		this.setTraderStatus("0");
		this.setTraderLevel(1);
		this.setCreateTime(new Date());
		return this;
	}

	public Trader checkTrader(UserInfoVO userInfoVO) {
		this.setCheckerName(userInfoVO.getUserName());
		this.setCheckTime(new Date());
		this.setLastModifyTime(new Date());
		return this;
	}
}
